#if !USE_CONSOLE

#ifndef LIGHT_DIALOG_H
#define LIGHT_DIALOG_H

#include <QDialog>
#include <QtGui>

#include "src/scene/light.h"

#include "src/interface/lightTreeItem.h"

class LightDialog : public QDialog{
    Q_OBJECT

    public:
        LightDialog(int, unsigned int, QWidget * = 0);
        LightDialog(Light *, LightTreeItem *, QWidget * = 0);
        ~LightDialog();

    signals:
        void done(Light *);
        void done();

    private:
        Light *light;
        LightTreeItem *item;
        int id, colorR, colorG, colorB, colorA;
        unsigned int type;
        double positionX, positionY, positionZ, aX, aY, aZ, bX, bY, bZ, energy;

        QPushButton *colorPushButton;

        void createLayout();
        void setButtonColor();

    private slots:
        void acceptAndCreate();
        void changeColor();
        void changePositionX(double _x){positionX = _x;};
        void changePositionY(double _y){positionY = _y;};
        void changePositionZ(double _z){positionZ = _z;};
        void changeAX(double _x){aX = _x;};
        void changeAY(double _y){aY = _y;};
        void changeAZ(double _z){aZ = _z;};
        void changeBX(double _x){bX = _x;};
        void changeBY(double _y){bY = _y;};
        void changeBZ(double _z){bZ = _z;};
        void changeEnergy(double _e){energy = _e;};
};

#endif
#endif //!USE_CONSOLE
